/**
* Quiz.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs        :: http://sailsjs.org/#!documentation/models
*/

module.exports = {

	attributes: {
		
		name : {
			type: 'string',
			required: true
		},

		is_competition: {
			type: 'boolean'
		},

		requires_login: {
			type: 'boolean'
		},

		questions: {
			collection: 'question',
			via: 'quiz'
		},

		user: {
			model: 'user',
			required: true
		},
		
	}
};

